/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package proyecto.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author sistemas
 */
@Embeddable
public class InvIngresodetPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "ingd_ingresoDetId")
    private int ingdingresoDetId;
    @Basic(optional = false)
    @Column(name = "inv_ingreso_ing_ingresoId")
    private int invingresoingingresoId;

    public InvIngresodetPK() {
    }

    public InvIngresodetPK(int ingdingresoDetId, int invingresoingingresoId) {
        this.ingdingresoDetId = ingdingresoDetId;
        this.invingresoingingresoId = invingresoingingresoId;
    }

    public int getIngdingresoDetId() {
        return ingdingresoDetId;
    }

    public void setIngdingresoDetId(int ingdingresoDetId) {
        this.ingdingresoDetId = ingdingresoDetId;
    }

    public int getInvingresoingingresoId() {
        return invingresoingingresoId;
    }

    public void setInvingresoingingresoId(int invingresoingingresoId) {
        this.invingresoingingresoId = invingresoingingresoId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) ingdingresoDetId;
        hash += (int) invingresoingingresoId;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof InvIngresodetPK)) {
            return false;
        }
        InvIngresodetPK other = (InvIngresodetPK) object;
        if (this.ingdingresoDetId != other.ingdingresoDetId) {
            return false;
        }
        if (this.invingresoingingresoId != other.invingresoingingresoId) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "proyecto.modelo.InvIngresodetPK[ingdingresoDetId=" + ingdingresoDetId + ", invingresoingingresoId=" + invingresoingingresoId + "]";
    }

}
